import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    name: 'Home',
    component: () => import(/* webpackChunkName: "home" */ '@/views/Home.vue')
  },
  {
    path: '/fryyoung',
    name: 'Fryyoung',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '@/views/Fryyoung')
  },
  {
    path: '/performance/dashboard',
    name: 'AccountHealth',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '@/views/AccountHealth')
  },
  {
    path: '/sw/AccountInfo/LegalEntity/step/LegalEntity',
    name: 'LegalEntity',
    component: () => import('@/views/LegalEntity')
  },
  {
    path: '/business-reports/:info',
    name: 'BusinessReports',
    component: () => import('@/views/BusinessReports')
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/Login')
  },
  {
    path: '/inventory/:info',
    name: 'Inventory',
    component: () => import('@/views/Inventory')
  },
  {
    path: '/hz/sc/account-information',
    name: 'AccountInfo',
    component: () => import('@/views/AccountInfo')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
